package main

import (
	"fmt"
)

func max(m int,n int){

    if data[m] > data[n] {
       k:= data[n]
       data[n]=data[m]
       data[m]=k
    }
}

//var data [...]int

var data = [...]int{1,100,7,6,5,15,59,2,9,13}

func main(){

   dLeng := len(data)

   for i:=dLeng;i>1;i--{
       
       for k:=0;k<i-1;k++{

          max(k,k+1)
       }

   }

   fmt.Println(data)


}
